<template>
	<view>
		<u-navbar title-color="#fff" :borderBottom="false" title="关注列表" titleColor="#FFFFFF" backIconSize="40"
		 back-icon-color="#ffffff" :background="background">
		</u-navbar>
		<view class="top">
			<u-search @custom="search" @search="search" placeholder="搜索主播" :actionStyle="{'color':'#FFFFFF'}" bgColor="#181E5B"
			 @change="change" :showAction="showAction" v-model="keyword"></u-search>
		</view>
		<view class="content">
			<view class="list">
				<view class="head">
					<image src="../../../static/image/head.png" mode=""></image>
				</view>
				<view class="user">
					<view class="name">
						左手我右手
					</view>
					<view class="heat">
						<image src="../static/b2.png" mode=""></image>
						<view class="text">
							热度 121
						</view>
					</view>
				</view>
				<view class="icon">
					<image src="../static/a3.png" mode=""></image> 
					<view class="text">
						取关
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	var than;
	export default {
		data() {
			return {
				background: {
					'background': '#00074E'
				},
				keyword: "",
				showAction: false
			}
		},
		onLoad(option) {
			than = this;
		},
		methods: {
			search() {
				console.log(1);
			},
			change(e) {
				if (e.length > 0) {
					than.showAction = true;
				} else {
					than.showAction = false;
				}
			}
		}
	}
</script>

<style lang="less">
	page {
		background: linear-gradient(180deg, #00074E, #01001C);
	}

	.top {
		display: flex;
		align-items: center;
		height: 130rpx;
		background: #00074A;
		padding: 0 36rpx;
	}

	.content {
		.list {
			background: #000645;
			display: flex;
			align-items: center;
			padding: 0 36rpx;
			margin-bottom: 60rpx;
			.head {
				width: 78rpx;
				height: 78rpx;
				background: linear-gradient(90deg, #D92BD0, #FD670D);
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;

				image {
					width: 70rpx;
					height: 70rpx;
				}
			}

			.user {
				margin-left: 22rpx;
				.name {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #FFFFFF;
				}

				.heat {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #FFFFFF;
					margin-left: auto;
					margin-right: 12rpx;
					display: flex;
					align-items: center;

					image {
						margin-right: 9rpx;
						width: 18rpx;
						height: 21rpx;
					}
				}
			}

			.icon {
				margin-left: auto;
				width: 114rpx;
				height: 42rpx;
				border-radius: 21rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				background: linear-gradient(90deg, #D92BD0, #642FE2);

				image {
					width: 29rpx;
					height: 26rpx;
				}

				.text {
					color: #FFFFFF;
					margin-top: -5rpx;
					margin-left: 9rpx;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
				}
			}
		}
	}
</style>
